<?php
//Margus kursus1109 

$foo["name"] = "Eric T. Cartman";
$foo["address"] = "Southpark";
$foo["image"] = "pilt.jpg";
$foo["homepage"] = "http://www.southparkstudios.com/";

?>


<html>
<head>
<style type="text/css">
.container 
{
  border:1px solid red;
  margin:30px auto;
  overflow: hidden;
  padding: 10px;
  width: 620px;
  -moz-border-radius:5px;
}
.left-column 
{
  float:left; 
  width:300px;
  border:3px solid grey;
  -moz-border-radius:5px;
}
.right-column 
{ 
  float:left; 
  width:250px;
  padding-left:50px
}
img {width:300px; height:313px;}
a {color: black;}
a:hover {font-weight:bold;}
</style>
</head>
<body>
<div class="container">
  <div class="left-column">
    <img src="<?php  echo $foo['image']; ?>" />
  </div>
  <div class="right-column">  
    <p>Nimi: <b><?php  echo $foo['name']; ?></b></p>
    <p>Aadress: <i><?php  echo $foo['address']; ?></i></p>
    <p><a href="<?php  echo $foo['homepage']; ?>">www.southparkstudios.com</a></p>
  </div>
</div>
</body>
</html> 